# @Time    : 2023/3/20 22:32
# @Author  : SunJian
# @Email   : 330160114@qq.com
# @File    : learn_ordereddict.py
# @Software: PyCharm
"""
文件说明：

"""
import collections
print ("Regular dictionary")
d={}
d['a']='A'
d['b']='B'
d['c']='C'
d['d']='D'
d['e']='E'
for k,v in d.items():
    print (k,v)
print ("Order dictionary")
d1 = collections.OrderedDict()
d1['a'] = 'A'
d1['b'] = 'B'
d1['c'] = 'C'
d1['1'] = '1'
d1['2'] = '2'
for k,v in d1.items():
    print (k,v)
